package com.chen.gulimall.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.gulimall.gulimallproduct.entity.AttrGroupEntity;
import com.chen.gulimall.gulimallproduct.vo.AttrGroupWithAttrVo;
import com.chen.gulimall.gulimallproduct.vo.AttrRelationVo;
import com.chen.gulimall.gulimallproduct.vo.SpuItemAttrGroupVo;
import com.chen.gulimallcommon.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author mr.chen
 * @email 3061634906@qq.com
 * @date 2022-04-18 22:06:56
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catId);

    void deleteRelation(AttrRelationVo[] vos);

    List<AttrGroupWithAttrVo> getAttrGroupWithAttr(Long catelogId);

    List<SpuItemAttrGroupVo> getGroupAttrForSpu(Long spuId, Long catalogId);
}

